home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / OpenOffice.idb / usr / OpenOffice / help / en / common.jar / text / common / 00 / 00000021.xml < prev    next >
Encoding:
Extensible Markup Language  |  2002-01-24  |  11.8 KB  |  128 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>XML File Formats</title><meta name="filename" content="text/common/00/00000021"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         table.Tabelle1{
  5.                 margin-left:0cm; margin-right:7.641cm;}
  6.         span.Tabelle1A{
  7.                 width:6.463cm;}
  8.         span.Tabelle1B{
  9.                 width:3.896cm;}
  10.         td.Tabelle1A1{
  11.                 }
  12.         td.Tabelle1B1{
  13.                 border-width:0.002cm; border-style:solid; border-color:#000000;}
  14.         td.Tabelle1A2{
  15.                 }
  16.         td.Tabelle1B2{
  17.                 }
  18.         table.Tabelle4{
  19.                 }
  20.         span.Tabelle4A{
  21.                 width:1.499cm;}
  22.         span.Tabelle4B{
  23.                 width:16.499cm;}
  24.         table.Tabelle2{
  25.                 }
  26.         span.Tabelle2A{
  27.                 width:18cm;}
  28.         td.Tabelle2A1{
  29.                 }
  30.         p.P1{
  31.                 }
  32.         p.P2{
  33.                 }
  34.         span.T1{
  35.                 font-weight:bold;}
  36.         span.fr1{
  37.                 }
  38.         </style></head><body>
  39.    
  40.    
  41.    <p class="P1"/>
  42.    <p class="Head1"><help:help-id value="HID_DID_SAVE_PACKED_XML" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="import; XML" tag="kw68543_1" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="export; XML" tag="kw68543_7" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="filters; for XML" tag="kw68543_6" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="file formats; XML" tag="kw68543_5" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="XML; file formats" tag="kw68543_4" xmlns:help="http://openoffice.org/2000/help"/><a name="xmlformat"/><help:to-be-embedded Eid="xmlformat" xmlns:help="http://openoffice.org/2000/help"><help:link Id="68543">XML File Formats</help:link></help:to-be-embedded></p>
  43.    <p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help"><help:productname>%PRODUCTNAME</help:productname> uses an XML file format as the default for saving and opening its documents.</help:help-text></p>
  44.    <p class="Head2">XML file format names</p>
  45.    <p class="Paragraph">If in the dialogs for saving and opening <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> documents you do not select any other file type, <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> uses the following XML formats:</p>
  46.    <table border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" page-break-inside="page-break-inside:avoid"><tr class=""><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A">
  47.        <p class="TableHead">Application</p>
  48.       </span></th><th class="Tabelle1B1" style="text-align:left;"><span class="Tabelle1B">
  49.        <p class="TableHead">File extension</p>
  50.       </span></th></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  51.       <p class="TextInTable"><help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Writer</p>
  52.      </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  53.       <p class="TextInTable">*. sxw</p>
  54.      </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  55.       <p class="TextInTable"><help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Writer templates</p>
  56.      </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  57.       <p class="TextInTable">*.stw</p>
  58.      </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  59.       <p class="TextInTable"><help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Calc</p>
  60.      </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  61.       <p class="TextInTable">*.sxc</p>
  62.      </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  63.       <p class="TextInTable"><help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Calc templates</p>
  64.      </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  65.       <p class="TextInTable">*.stc</p>
  66.      </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  67.       <p class="TextInTable"><help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Impress</p>
  68.      </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  69.       <p class="TextInTable">*.sxi</p>
  70.      </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  71.       <p class="TextInTable"><help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Impress templates</p>
  72.      </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  73.       <p class="TextInTable">*.sti</p>
  74.      </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  75.       <p class="TextInTable"><help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Draw</p>
  76.      </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  77.       <p class="TextInTable">*.sxd</p>
  78.      </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  79.       <p class="TextInTable"><help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Draw templates</p>
  80.      </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  81.       <p class="TextInTable">*.std</p>
  82.      </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  83.       <p class="TextInTable"><help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Math</p>
  84.      </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  85.       <p class="TextInTable">*.sxm</p>
  86.      </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  87.       <p class="TextInTable">Master documents</p>
  88.      </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  89.       <p class="TextInTable">*.sxg</p>
  90.      </span></td></tr></table>
  91.    <p class="Paragraph">These file name extensions on the one hand allow better differentiation if you are searching though a lot of files of different file types in a directory. And on the other, from the name, it is clear that compressed XML files are involved that must first be unpacked before being read, for example, by a text editor.</p>
  92.    <table><tr class=""><th style="text-align:left;"><span class="Tabelle4A">
  93.        <p class="Paragraph"><draw:image draw:style-name="fr1" draw:name="HIND_4" text:anchor-type="paragraph" svg:width="0.847cm" svg:height="0.847cm" draw:z-index="0" xlink:href="66732" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
  94.       </span></th><th style="text-align:left;"><span class="Tabelle4B">
  95.        <p class="Paragraph"><help:key-word value="file formats; changing defaults" tag="kw68543_3" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="default formats; changing" tag="kw68543_2" xmlns:help="http://openoffice.org/2000/help"/>If you want to work permanently with another file format, you can define that format as the default. Choose <help:link Id="66264" xmlns:help="http://openoffice.org/2000/help"><span class="T1">Tools - Options - Load/Save - General</span></help:link> to find alternative file formats that can be selected for each <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> document type.</p>
  96.       </span></th></tr></table>
  97.    <p class="Head2">XML file structure</p>
  98.    <p class="Paragraph">The <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> XML file formats are compressed according to the ZIP method. Use an unpacking program of your choice to unpack the content of an XML file with your subdirectories. <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>You see a structure similar to the following illustration.</p>
  99.    <table><tr class=""><td class="Tabelle2A1" style="text-align:left;"><span class="Tabelle2A">
  100.       <p class="TableHead"><draw:image draw:style-name="fr1" draw:name="Grafik1" text:anchor-type="paragraph" svg:width="8.308cm" svg:height="4.101cm" draw:z-index="1" xlink:href="67448" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
  101.      </span></td></tr></table>
  102.    <ul class="L1">
  103.     <li class="">
  104.      <p class="P2">The text content of the document is located in <span class="T1">content.xml</span>. You can view this file with, for example, a pure text editor.</p>
  105.      <p class="P2">By default content.xml without indents is stored at the start of the line in order to minimize the time for saving and opening. By choosing <span class="T1">Tools - Options - Load/Save - General</span> you can change this procedure so that the lines are saved with a structured indent.</p>
  106.     </li>
  107.     <li class="">
  108.      <p class="P2"><span class="T1">meta.xml</span> contains, inter alia, the meta information on the document, which you can enter under<span class="T1">File - Properties</span>.</p>
  109.      <p class="P2">If you save a document with security, only meta.xml is not secured.</p>
  110.     </li>
  111.     <li class="">
  112.      <p class="P2"><span class="T1">settings.xml</span> contains further information on settings for this document, for example on the printer, on the recording of changes, the associated data sources and so on.</p>
  113.     </li>
  114.     <li class="">
  115.      <p class="P2">In <span class="T1">styles.xml</span> you find the Styles defined for the document that can, for example, be seen in the Stylist.</p>
  116.     </li>
  117.     <li class="">
  118.      <p class="P2">The <span class="T1">meta-inf/manifest.xml</span> file describes the structure of the XML file.</p>
  119.     </li>
  120.    </ul>
  121.    <p class="Paragraph">Additional files can be contained in the packed file format. Illustrations are, for example, contained in a <span class="T1">Pictures</span> subdirectory, Basic code in a <span class="T1">Basic</span> subdirectory and linked Basic libraries are found in further subdirectories of <span class="T1">Basic</span>.</p>
  122.    <p class="Head2">Definition of the XML formats</p>
  123.    <p class="Paragraph">The DTD (Document Type Description) files can be found in <help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="UNIX">{installpath}/share/dtd</help:case><help:default>{installpath}\share\dtd</help:default></help:switch>.</p>
  124.    <p class="Paragraph">Note that the formats are subject to certain licenses. You can find notes on the licenses at the start of the DTD files. More detailed information can be found on the <a href="http://www.openoffice.org" class="ContentLink">OpenOffice.org</a> website.</p>
  125.    <p class="ParaList"><help:embedded Id="65598" Eid="related" xmlns:help="http://openoffice.org/2000/help"/></p>
  126.    <p class="ParaList"><help:embedded Id="68042" Eid="doc_open" xmlns:help="http://openoffice.org/2000/help"/></p>
  127.    <p class="ParaList"><help:embedded Id="68041" Eid="doc_save" xmlns:help="http://openoffice.org/2000/help"/></p>
  128.   </body></html>